package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entity.Spu;

public interface SpuService extends IService<Spu> {
    //商品分页查询
    PageDTO<SpuDTO> querySpuByPage(Integer page, Integer rows, Boolean saleable, Long categoryId, Long brandId, Long id);

    void saveGoods(SpuDTO spuDTO);
    //修改商品上下架
    void updateSabeable(Long id, Boolean saleable);
    //根据id查询spu及sku、spuDetail等
    SpuDTO queryGoodsById(Long id);
    //    更新商品
    void updateGoods(SpuDTO spuDTO);
}
